<h1>Tipos</h1>
<?php echo $this->Html->link('Adicionar tipos',array('controller' => 'tipos', 'action' => 'add'))?>
<table>
    <tr>
        <th>Id</th>
        <th>Title</th>
        <th>Created</th>
        <th>Ações</th>
    </tr>

    <!-- Here is where we loop through our $posts array, printing out post info -->

    <?php foreach ($tipos as $tipo): ?>
    <tr>
        <td><?php echo $tipo['Tipo']['id']; ?></td>
        <td>
            <?php echo $this->Html->link($tipo['Tipo']['nome'], array('controller' => 'tipos', 'action' => 'view', $tipo['Tipo']['id'])); ?>
        </td>
        <td><?php echo $tipo['Tipo']['created']; ?></td>
        <td>
            <?php echo $this->Html->link('Remover', array('action' => 'delete', $tipo['Tipo']['id']), null, 'Deseja remover?' )?>
            <?php echo $this->Html->link('Editar', array('action'=>'edit', 'id'=>$tipo['Tipo']['id']));?>
        </td>
    </tr>
    <?php endforeach; ?>

</table>